﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace PlanningGIS.Util
{
    /// <summary>
    /// 实际值-显示名称类
    /// </summary>
    [Serializable]
    public class ValueName
    {
        /// <summary>
        /// 显示名称
        /// </summary>
        [XmlAttribute]
        public string Name { get; set; }
        /// <summary>
        /// 显示名称
        /// </summary>
        [XmlAttribute]
        public string Value { get; set; }
        /// <summary>
        /// 扩展标识，不使用object类型是为了在序列化时使用
        /// </summary>
        [XmlAttribute]
        public string TagString { get; set; }
    }

    /// <summary>
    /// 对ValueName的扩展，以便于使用动态类型Tag
    /// </summary>
    public class ValueName2 : ValueName
    {
        /// <summary>
        /// 扩展标识
        /// </summary>
        public dynamic Tag { get; set; }
    }
}
